package com.fourth.service.impl;

import com.fourth.dao.UBZoneDataMapper;
import com.fourth.service.UBZoneDataService;
import com.fourth.vo.ZoneDataVo;
import com.ljx.vo.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 蒋一飞
 * @adte 2023/3/2 9:43
 */
@Service
public class UBZoneDataServiceImpl implements UBZoneDataService {

    @Resource
    private UBZoneDataMapper ubZoneDataMapper;

    /**
     * 主页返回商品分类信息
     * @return
     */
    @Override
    public Result<ZoneDataVo> getZoneData() {
        List<ZoneDataVo> zoneData = ubZoneDataMapper.getZoneData();
        return new Result(2000,"查询成功", zoneData);
    }
}
